package myapp

class SecurityFilters {

	def filters = {
		all(controller:'*', action:'*') {
			before = {
				if (!session.user && actionName != "login") {
					redirect(controller: "login", action: "login")
//					return false
				}
			}
			after = { Map model ->
			}
			afterView = { Exception e ->
			}
		}
	}
}
